import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/reg',
      name: 'Register',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/register'),
    },
    {
      path: '/login',
      name: 'Login',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/login'),
    },
    {
      path: '/like',
      name: 'Like',
      meta: {
        showFooter: true,
      },
      component: () => import('../pages/like'),
    },
    {
      path: '/order',
      name: 'Order',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/order'),
    },
    {
      path: '/home',
      name: 'Home',
      meta: {
        showFooter: true,
      },
      component: () => import('../pages/home'),
    },
    {
      path: '/detail',
      name: 'Detail',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/detail'),
    },
    {
      path: '/boke',
      name: 'Boke',
      meta: {
        showFooter: true,
      },
      component: () => import('../pages/boke'),
    },
    {
      path: '/like',
      name: 'Cart',
      meta: {
        showFooter: true,
      },
      component: () => import('../pages/like'),
    },
    {
      // 个人资料
      path: "/personal",
      component: () => import("../pages/personal/index.vue"),
      meta: {
        title: "个人资料",
        showFooter: false,
        showHeader: true,
        center1: false,
        center2: false,
        showPlay: false,
        arrowLeft: true,
      },
    },
    {
      path: "/mine",
      name: "Mine",
      meta: {
        showFooter: true,
      },
      component: () => import('../pages/mine'),
    },
    {
      path: '/pinglun',
      name: 'pinglun',
      meta: {
        showFooter: true,
      },
      component: () => import('../pages/pinglun'),
    },
    {
      path: '/search',
      name: 'Search',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/search'),
    },
    {
      path: '/singerlist',
      name: 'Singerlist',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/singerlist'),
    },
    {
      path: '/albumdetail',
      name: 'Albumdetail',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/albumdetail'),
    },
    {
      path: '/gedan',
      name: 'Gedan',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/gedan'),
    },
    {
      path: '/topicdetail',
      name: 'Topicdetail',
      meta: {
        showFooter: false,
      },
      component: () => import('../pages/topicdetail'),
    },
  ],
})

export default router
